package com.example.cricketscorer.server;

import java.util.ArrayList;
import java.util.List;

import com.example.cricketscorer.client.ScorerService;
import com.example.cricketscorer.client.bean.BATSTYLE;
import com.example.cricketscorer.client.bean.PLAYINGROLE;
import com.example.cricketscorer.client.bean.PlayerBean;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class ScorerServiceImpl extends RemoteServiceServlet  implements ScorerService {

	@Override
	public List<PlayerBean> getPlayers(String teamId) {
		
		List<PlayerBean> players = new ArrayList<PlayerBean>();
		players.add(new PlayerBean("Kiran", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Anand", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Sachin", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Sehwag", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Raina", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Dhoni", BATSTYLE.RHB, null, PLAYINGROLE.WICKETKEEPER));
		players.add(new PlayerBean("Rahul", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Puneet", BATSTYLE.RHB, null, PLAYINGROLE.BATSMAN));
		players.add(new PlayerBean("Ashwin", BATSTYLE.RHB, null, PLAYINGROLE.BOWLER));
		
		return players;
	}

}
